package com.hongye.proprietary.fegin;

import com.alipay.api.response.AlipayTradeQueryResponse;
import com.hongye.common.utils.R;
import com.hongye.proprietary.vo.PayVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lins
 * @date 2021/10/19 21:34
 */
@FeignClient("hongye-pay")
public interface PayFeignService {
    @RequestMapping(value = "/alipay/pay", produces = "text/html")
    public String pay(@RequestBody PayVo payVo);

    @RequestMapping("/alipay/transactionQuery")
    public AlipayTradeQueryResponse transactionQuery(@RequestParam("tradeNo") String tradeNo);

}
